using System;
using System.Collections.Generic;
using System.Text;
using ElteIk.RoboSoccer.Core.Physics;

namespace ElteIk.RoboSoccer.Communication
{
	class PhysicalData
	{
        internal int id;
        internal Vector2D position;
        internal Vector2D heading;
        internal Vector2D velocity;

		public static PhysicalData FromPhysicalObject(IPhysicalObject physicalObject)
		{
			PhysicalData data = new PhysicalData();
            data.position = physicalObject.Position;
            data.velocity = physicalObject.Velocity;
            data.heading = physicalObject.Heading;
            return data;
		}

        public PhysicalData Clone()
        {
            PhysicalData data = new PhysicalData();
            data.position = new Vector2D(this.position);
            data.velocity = new Vector2D(this.velocity);
            data.heading = new Vector2D(this.heading);
            return data;
        }
	}
}
